package com.hyuk.hyukfgw.biz.controller.auth.login;

import com.hyuk.hyukfgw.facade.auth.login.LoginByAccountPwdRequest;
import com.hyuk.hyukfgw.facade.auth.login.LoginByAccountPwdResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * <h1>通过账号+密码登录处理类。</h1>
 *
 *
 * @author hmilyylimh
 * ^_^
 * @version 0.0.1
 * ^_^
 * @date 2023/10/15 17:24
 */
@Slf4j
@Component
public class LoginByAccountPwdAction {

    public void test() {
        log.info("[LoginByAccountPwdAction][test]方法执行完成");
    }

    public LoginByAccountPwdResponse login(LoginByAccountPwdRequest loginByAccountPwdRequest, String testParams) {
        log.info("[LoginByAccountPwdAction][test]开始执行, loginByAccountPwdRequest : {}, testParams : {}", loginByAccountPwdRequest, testParams);
        
        LoginByAccountPwdResponse response = new LoginByAccountPwdResponse();
        response.setToken("test_token_111111");
        
        log.info("[LoginByAccountPwdAction][test]执行完成, response : {}", response);
        return response;
    }
}
